<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="__STATIC__/admin/css/common.css" />
    <link rel="stylesheet" href="__STATIC__/admin/css/base.css" />
    <link rel="stylesheet" href="__STATIC__/plugin/bootstrap/css/bootstrap.min.css" />
    <style>
        table td{height:40px !important; max-width:200px !important;overflow-x: hidden;}
    </style>
</head>
<body>
<form class="form" action="{:U('')}" method="post">
    <div class="form-group">
        <div class="input-group">
            <div class="input-group-addon">SQL</div>
            <input type="text" class="form-control" name="sql" value="{$sql}"/>
        </div>
        <div class="input-group">
            <div class="input-group-addon">DB</div>
            <input type="text" class="form-control" name="db" value="{:I('db')}"/>
        </div>
    </div>
    <input type="submit" class="btn btn-success" value="提交" />
</form>
<div class="container">
    <div class="row">
        <div class="text-info">{$info}</div>
    </div>
</div>
<table class="table table-bordered table-hover">
    <empty name="list">
        <tr>
            <td>没有更多数据~~~</td>
        </tr>
        <else/>
        <thead>
        <tr>
            <th>count</th>
            <foreach name="th" item="vo">
                <th>{$vo}</th>
            </foreach>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" key="key" item="vo">
            <tr>
                <td style="display:none">{:var_dump($vo)}</td>
                <td><php>echo $key + 1 + (I('p', 1, 'intval') - 1) * ($pageSize)</php></td>
                <foreach name="vo" item="val">
                    <td title="{$val}">{$val === null ? 'NULL' : $val} <if condition="preg_match('/^\d{10}$/', $val)">({:date('Y-m-d H:i:s', $val)})</if></td>
                </foreach>
            </tr>
        </foreach>
        </tbody>
        <tfoot>
        <tr>
            <td colspan="30" ><div class="pagination">{$page}</div></td>
        </tr>
        </tfoot>
    </empty>
</table>
<script src="__STATIC__/plugin/jquery/jquery.js"></script>
<script src="__STATIC__/plugin/bootstrap/js/bootstrap.min.js" ></script>

</body>
</html>